﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LoginWebUsingWebBrowser
{
    public class UserState
    {
        public UserState()
        {
            
        }
        public UserState(string uname)
        {
            this.UserName = UserName;
            this.Tested = false;
        }
        public string UserName { get; set; }
        public int Uid { get; set; }
        public bool Tested { get; set; }
        public string Pwd { get; set; }
    }



    public class ProxyInfo
    {
        public ProxyInfo()
        {
            
        }
        public ProxyInfo(string add)
        {
            this.Address = add;
            this.Used = false;
        }
        public string Address { get; set; }
        public bool Used { get; set; }
        /// <summary>
        /// 代理是否有效
        /// </summary>
        public bool IsValid { get; set; }
        public int UsedTime { get; set; }
        /// <summary>
        /// 重试次数
        /// 用于测试代理的有效,如果重试次数超过2且IsValid为false,则代理无效.
        /// </summary>
        public int RetryTimes { get; set; }
    }
}
